//
//  UIView+WMAlert.h
//  LvXi_newVersion
//
//  Created by 王敏 on 16/8/20.
//  Copyright © 2016年 SJT. All rights reserved.
//

#import <UIKit/UIKit.h>

@interface UIView (WMAlert)<CAAnimationDelegate,UITextFieldDelegate>
typedef void(^alertHandle)(NSInteger buttonIndex);
-(void)alertWithTitle:(NSString*)title mesege:(NSString*)messege buttons:(NSArray*)buttons handle:(alertHandle)handle;

-(void)alertWithTitle:(NSString*)title mesege:(NSString*)messege buttons:(NSArray*)buttons handle:(alertHandle)handle hiddenAfter:(NSTimeInterval)time complete:(void(^)())complete;

-(void)alertWithTitle:(NSString *)title placeHolder:(NSString *)placeHolder buttons:(NSArray *)buttons handle:(void(^)(NSInteger clickIndex,UITextField * textField))handle;

-(void)showLoading;


-(void)dismissAlert;

-(void)alertWithMessege:(NSString *)messege;

@end
